FROM node:0.10.32

RUN apt-get update && apt-get install -y wget
RUN wget "http://download.zeromq.org/zeromq-4.0.5.tar.gz" \
	&& tar -zxf zeromq-4.0.5.tar.gz \
	&& cd zeromq-4.0.5 \
	&& ./configure \
	&& make \
	&& make install \
	&& ldconfig

RUN npm install -g pomelo

RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
COPY package.json /usr/src/app/
RUN npm install
COPY . /usr/src/app

CMD [ "pomelo", "start" ]
